<html>
	<head>
		<title>GASCIAN - admin</title>
		<?php 
		$this->load->view("admin/partial/headerlinks");
		?>
	</head>
	<body>

    <div id="wrapper">
		<?php 
			$this->load->view("admin/partial/navmenu");
		?>
      <div id="page-wrapper">

        <div class="row">
          <div class="col-lg-12">
            <h1>Editorial Board Members</h1>
          </div>
        </div><!-- .row -->

        

        <div class="row">
          <div class="col-lg-12">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-bar-chart-o"></i> Add Member</h3>
              </div>
              <div class="panel-body">
                <div id="morris-chart-area">
                

              <div class="panel-body">
                <div class="table-responsive">
				<?php 
				if(count($editorials) < 1){
					$editorials = Array(Array ( 'id' => 0, 'email' => '', 'phone' => '', 'name' => '', 'designation' => '' ));
				}
				foreach ($editorials as $ls){
				?>                
                <form role="form" action="<?php echo base_url()?>admin/editorial/addMember?id=<?php echo $ls['id'];?>" method="post">

	              <div class="form-group">
	                <label>E-Mail Id</label>
	                <input name="email" class="form-control" placeholder="Enter E-Mail Id" value="<?php echo $ls['email'];?>">
	                <input  type="hidden" name="addMemberPostData" value="1">
	              </div>
	

	              <div class="form-group">
	                <label>Enter Phone Number</label>
	                <input name="phone" class="form-control" placeholder="Enter Phone Number" value="<?php echo $ls['phone'];?>">
	              </div>
	

	              <div class="form-group">
	                <label>Enter Name</label>
	                <input name="name" class="form-control" placeholder="Enter Name" value="<?php echo $ls['name'];?>">
	              </div>
	
	              <div class="form-group">
	                <label>Enter Designation</label>
	                <textarea name="designation" class="form-control" rows="3"><?php echo $ls['designation'];?></textarea>
	              </div>
	
                
	                <input type="submit" class="btn btn-primary" value="Save Member">
	                <a type="button" class="btn btn-link" href="<?php echo base_url()?>admin/editorial" >Cancel</a>
	            </form>
	            <?php 
				}
	            ?>
                </div>
              </div>
                
                
                </div>
              </div>
            </div>
          </div>
        </div> 
        
        </div><!-- /#page-wrapper -->

    </div><!-- /#wrapper -->

	<?php 
		$this->load->view("admin/partial/footerlinks");
	?>
	</body>
</html>
